#include "settings.h"
#include "errors.h"

void ErrorCategoryListNotFound(char *line)
{
	printf("Error: file \"%s\" is not found.\n", line);
	exit(0);
}

void ErrorFileNotFound(char *line)
{
	printf("Error: file \"%s\" is not found.\n", line);
}

void ErrorAnalizingFileNotFound()
{
	printf("Error: analizing file \"%s\" is not found.\n", ANALYZING_DIRECTORY);
	exit(0);
}

void ErrorExceedingLengthFileName(char *line, FILE *f, int index, char *c)
{
	while (*c != '\n' && *c != EOF)
	{
		*c = fgetc(f);
	}
	line[index] = '\0';
	printf("Error: file name \"%s...\" exceeding length file name.\n", line);
}

void ErrorOverflowWord(char *line)
{
	printf("Error: overflow word \"%s...\".\n", line);
}